/* ================== */
/* = Label Position = */
/* ================== */

/* Default: Labels and controls are on the same line */
form .field {
	position: relative;
	padding-left: 144px; /* @label-width + @grid-gutter */
	padding-bottom: 24px; /* @line-height */
}
form .label {
	display: block;
	width: 120px; /* @grid-cell-width */
	position: absolute;
	top: 0;
	left: 0;
}
form .hint, form .error {
	display: block;
	position: absolute;
	left: 144px;
	bottom: 12px;
	font-size: 12px; /* @line-height / 2 */
	line-height: 1;
	color: gray;
}
form .item .hint, form .item .error {
	display: inline;
	position: static;
}
form .error {
	color: red;
}

/* Tight: Labels are right aligned */
.tight .label {
	text-align: right;
}

/* Compact: labels are above fields */
.compact .field {
	position: static;
	padding-left: 0;
	padding-bottom: 0;
}
.compact .label {
	position: static;
	width: auto;
	padding-top: 8px; /* @line-height - @font-size */
	font-size: 16px;
	line-height: 1;
}
.compact .hint {
}

/* =================== */
/* = Fieldset styles = */
/* =================== */
fieldset.first {
	padding-top: 11px; /* @line-height / 2 - 1px */
	border-top: 1px solid #999;
	margin-top: 12px; /* @line-height / 2 */
}
fieldset {
	border-bottom: 1px solid #999;
	margin-bottom: 11px; /* @line-height / 2 - 1px*/
}
.compact fieldset, fieldset.compact {
	padding-bottom: 12px;
}

/* Compact fieldset */
fieldset.compact .field {
	width: 12em;
	margin-right: 24px;
	display: -moz-inline-box;
	display: inline-block;
	vertical-align: top;
}

/* =========== */
/* = Widgets = */
/* =========== */

/* Base */
input.text, input.password, textarea, select, button, a.button {
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
}

/* File */
input.file {
	
}
.field .files li {
	position: relative;
	padding-left: 24px;
	font-size: 12px;
	font-family: sans-serif;
	line-height: 2;
	background: url(/images/icons/default.gif) no-repeat 0px 50%;
}
.field .files .status {
	position: absolute;
	bottom: 0;
	left: 24px;
	display: none; /*block*/
	overflow: hidden;
	text-indent: -9999px;
	width: 100px;
	height: 4px;
	border: 1px solid gray;
}
.field .files .incomplete {
	color: #666;
}
.field .files button {
	border: 0;
	margin: 0;
	line-height: 1;
}
.field .files button:hover, .field .files button:focus {
	color: #f00;
	background: #fff;
}

/* Button */
button, a.button {
	padding: 2px 4px;
	border: 1px solid #aaa;
	border-bottom: 2px groove #888;
	border-right: 2px groove #888;
	background: #fff;
	text-decoration: none;
	font-family: sans-serif;
	color: #000;
	cursor: pointer;
}
button {
	padding: 1px 4px 1px;
	line-height: 16px;
}
button:hover, a.button:hover, button:focus, a.button:focus {
	background: #e5e5e5;
}

/* Textarea */
textarea {
	height: 110px; /* No crossbrowser safe value */
}

/* Date */
.date-day {
	text-align: right;
	width: 1.5em;
}
input.date-month {
	width: 1.5em;
}
.date-year {
	width: 3em;
}
